<template>
  <h2>我是Home组件的内容</h2>
</template>

<script>
export default {
    name:'Home',
    mounted() {
      console.log('Home组件挂载了',this)
      window.homeRoute = this.$route
      window.homeRouter = this.$router
    },
    beforeDestroy() {
        console.log('Home组件被销毁了')
    }
}
</script>

<style>

</style>